/**
 * @project KaiBesIMServer
 * @title KaiBesIMServer
 * @package com.kaibesim.server
 * @description TODO
 * @author QiuShuiCai
 * @email 414100905@qq.com
 * @version V1.0
 * @date 2014-11-24 ����7:33:18
 */
package com.kaibes.imserver;

import java.awt.EventQueue;
import java.net.Socket;

import javax.swing.UIManager;

import com.kaibes.imserver.control.MainClientControl;
import com.kaibes.imserver.model.database.KaibesimcenterHelper;
import com.kaibes.imserver.model.database.UsercenterHelper;
import com.kaibes.imserver.model.utils.LookAndFeelUtil;
import com.kaibes.imserver.view.ServerMainView;

/**
 * @className KaiBesIMServer
 * @description TODO
 * @author QiuShuiCai
 * @email 414100905@qq.com
 * @date 2014-11-24 下午7:33:18
 *
 */
public class KaibesIMServer {

	/**
	 * @author QiuShuiCai
	 * @email 414100905@qq.com
	 * @date 2014-11-24 下午7:33:18
	 * @description TODO
	 * @return void
	 * 
	 * @param args
	 */
	
	public static Socket localSocket = null;
	public static String chatSet = "ISO-8859-1";
	public static MainClientControl mainClientControl;
	
	public static void main(String[] args) {

		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					UIManager.setLookAndFeel(LookAndFeelUtil.SKIN[0]);
					ServerMainView frame = new ServerMainView();
					frame.setVisible(true);
					mainClientControl = new MainClientControl();
					UsercenterHelper.Initialize();
					KaibesimcenterHelper.Initialize();
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
		
	}
	
	public KaibesIMServer() {
		// TODO Auto-generated constructor stub
	}

}
